package com.mg.persional.controller;

import com.mg.common.vo.ResponseResult;
import com.mg.persional.entity.TbMyTiktok;
import com.mg.persional.service.TbMyTiktokService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/TbMyTiktok")
public class TbMyTiktokController {
    @Autowired
    TbMyTiktokService tmts;

    //@RequestParam 获取值
    //@RequestBody  获取对象

    @GetMapping("/search")
    public ResponseResult<TbMyTiktok> searchByIdOrKeyWords(@RequestParam String mtNickname){
        return tmts.getByKeyWords(mtNickname);
    }

}
